import cookiens from "react-cookies";

const token = "adminToekn";
const user = "username";
//存储token
export function setToken(value) {
  cookiens.save(token, value);
}

export function getToken() {
  //拿到东西要return出去
  return cookiens.load(token);
}
//存储用户名
export function setUsername(value) {
  cookiens.save(user, value);
}
export function getUsername() {
  //拿到东西要return出去
  return cookiens.load(user);
}
